<template>
	<div>
		<h1>姓名：{{name}}</h1>
		<h1>年龄:{{age}}</h1>
		<button @click="showName">点我显示学生名</button>
	</div>
</template>

<script>
export default {
	name:'Student',
	data(){
		return {
			name:"站三",
			age:19
		}
	},
	methods:{
		showName(){
			alert(this.name)
		}
	}
}
		
</script>

<style>
</style>

